﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ViewTrainingClassList.aspx.cs" Inherits="TrainClassManagement_ViewTrainingClassList" %>
<%@ Import Namespace="VideoClassLibrary.Extension" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../Css/ys.css" rel="stylesheet" type="text/css" />
    <script src="../Js/jquery-1.4.2.min.js" type="text/javascript"></script>
      <script src="../Js/tablehover.js" type="text/javascript"></script>
    <script language="javascript" src="../My97DatePicker/WdatePicker.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="margin-left: 5px">
        <div class="title">
            <div class="titleLeft">
                查看培训班信息</div>
        </div>
  
        <div id="search" class="search2">
                <table cellspacing="1" cellpadding="3" border="0">
                    <tr>
                        <td class="noWrapTD">按培训班名查找：</td><td><asp:TextBox ID="TxtCheckTClass" runat="server" Width="100" CssClass="inp1"></asp:TextBox></td>
                        <td><asp:Button  ID="BtnSearch" runat="server" Text="查找" onclick="BtnSearch_Click" CssClass="button"  Width="60px" /></td>
      
            <td><asp:Button ID="BtnCreateTrainingClass" runat="server" onclick="BtnCreateTrainingClass_Click" Text="添加培训班" CssClass="button"  Width="80px" />
        </td>
        <td>
            <asp:Button ID="btnTCCourseList" runat="server" Text="查看培训班课程"  Width="102px" 
                CssClass="button" style="display:none"/></td></tr></table></div>
         <br class="sp3px" />
   <table class="tab_alt" style="width: 100%" cellpadding="0" cellspacing="0">
      <tr class="header">
       <td class="noWrapTD">操作</td>
    <td  class="noWrapTD">隶属学校</td>
    <td class="noWrapTD">培训班编号</td>
    <td  class="noWrapTD">培训班名称</td>
    <td class="noWrapTD">培训班人数</td>
     <td class="noWrapTD">开课日期</td>
    <td class="noWrapTD">结课日期</td>
     <td  class="noWrapTD">培训班描述</td>
       <td  class="noWrapTD">班级状态</td>
    </tr>  <asp:Repeater ID="Repeater1" runat="server" >
           <ItemTemplate>
          <tr class="<%# Container.ItemIndex%2==1?"odd":"" %>">
           <td class="ta2" style="text-align:left"><nobr>
            <asp:LinkButton CssClass="button2" ID="btnUpdate" runat="server" CommandArgument='<%#Eval("ID")%>' OnCommand="btnUpdate_Click" Text="修改信息"></asp:LinkButton>
             <asp:LinkButton CssClass="button2" ID="btnToCourse" runat="server" CommandArgument='<%#Eval("ID")%>' OnCommand="btnToCourse_Click" Text="查看课程"></asp:LinkButton>
                  <asp:LinkButton CssClass="button2" ID="btnClassCourse" runat="server" CommandArgument='<%#Eval("ID")%>' OnCommand="btnClassCourse_Click" Text="课程表"></asp:LinkButton>
                          <asp:LinkButton CssClass="button2" ID="btnFormatCourse" runat="server" CommandArgument='<%#Eval("ID")%>' OnCommand="btnFormatCourse_Click" Text="调整视频"></asp:LinkButton>
             <asp:LinkButton CssClass="button2" ID="btnDelete" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ID") %>' OnCommand="btnDelete_Command" OnClientClick='return confirm("确定要删除么？")' Text="删除"></asp:LinkButton>
               <asp:LinkButton CssClass="button2" ID="btnFastAddUser" runat="server" CommandArgument='<%# Eval("ID")+"|"+Eval("VTC_name")%>' OnCommand="btnFastAddUser_Click" Text="快速录入学员"></asp:LinkButton> 
                  <asp:LinkButton CssClass="button2" ID="btnCreateCourse" runat="server" CommandArgument='<%# Eval("ID")+"|"+Eval("VTC_name")%>' OnCommand="btnCreateCourse_Click" Text="批量录入课程"></asp:LinkButton> 
</nobr>
           </td>
           <td class="ta2">&nbsp;<%= SchoolName%>&nbsp;</td>
           <td class="ta2">&nbsp;<%#Eval("VTC_Number") %>&nbsp;</td>
           <td class="ta2">&nbsp;<%#Eval("VTC_name")%>&nbsp;</td> 
           <td class="ta2">&nbsp;<%#Eval("MaxUserCount")%>&nbsp;</td>
           <td class="ta2">&nbsp;<%#Eval("vtc_starDate","{0:yyyy-MM-dd}")%></td>
           <td class="ta2">&nbsp;<%#Eval("vtc_endDate","{0:yyyy-MM-dd}") %></td>
             <td class="ta2" onmouseover="this.title = this.innerText" >
             <div  style="overflow: hidden; width: 240px; white-space: nowrap; text-overflow: ellipsis;"><%# StringUtils.getLimitLengthString(Eval("VTC_desc").ToString(),15,"...")%>&nbsp;</div></td>
              <td class="ta2"><%# Convert.ToInt32(Eval("IsPublish")) == 0 ? "<font color=red>未启用</font>" : "<font color=green>已启用"%>&nbsp;</td>
           </tr>
            </ItemTemplate>
            </asp:Repeater>
             </table>
            <br class="sp3px" />
    <webdiyer:AspNetPager ID="pager" runat="server"  AlwaysShow="true"
                onpagechanged="pager_PageChanged"  CssClass="anpager" CurrentPageButtonClass="cpb"  PageSize="20" >
            </webdiyer:AspNetPager>
        </div>
    </form>
</body>
</html>